﻿using SD.Infrastructure.WPF.Caliburn.Aspects;
using SD.Infrastructure.WPF.Caliburn.Base;
using SlamDunk.MES.Presentation;
using System.Configuration;

namespace SlamDunk.MES.Client.ViewModels.Home
{
    /// <summary>
    /// 用户指南视图模型
    /// </summary>
    public class ManualViewModel : ScreenBase
    {
        #region # 字段及构造器

        /// <summary>
        /// 依赖注入构造器
        /// </summary>
        public ManualViewModel()
        {

        }

        #endregion

        #region 属性

        #region 用户指南路径 —— string DirectivePath
        /// <summary>
        /// 用户指南路径
        /// </summary>
        [DependencyProperty]
        public string DirectivePath { get; set; }
        #endregion

        #endregion

        #region 方法

        //Initializations

        #region 加载 —— void Load()
        /// <summary>
        /// 加载
        /// </summary>
        public void Load()
        {
            this.DirectivePath = ConfigurationManager.AppSettings[Constants.UseGuidePDFKey];
        }
        #endregion

        #endregion
    }
}
